package com.example.win.android_banduyujia.peopleactivity.activity.activity.firmactivity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;

import com.example.win.android_banduyujia.R;
import com.example.win.android_banduyujia.peopleactivity.ui.activity.BaseTitleBarActivity;

/**
 * Created by Win on 2015/8/31.
 */
public class MyfirmActivity extends BaseTitleBarActivity implements View.OnClickListener {

    private TextView  mTxtProName,mTxtScope, mTxtTime,mTxtPeople, mTxtPrice, mTxtCancel;
    private Button   mBtnFirm;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.layout_firm_page);

        InitTitles();
        InitViews();
    }

    private void InitTitles() {
        showLeftBackButton();
        setTitle(R.string.fragment_my_release_course);
    }

    private void InitViews() {
        mTxtProName = (TextView) findViewById(R.id.title_list_item_course_name);
        mTxtScope = (TextView) findViewById(R.id.title_list_item_scope);
        mTxtTime = (TextView) findViewById(R.id.title_list_item_time);
        mTxtPeople = (TextView) findViewById(R.id.title_list_item_people);
        mTxtPrice = (TextView) findViewById(R.id.title_list_item_liner_price);
        mTxtCancel = (TextView) findViewById(R.id.title_list_item_liner_cancel);
        mBtnFirm = (Button) findViewById(R.id.layout_button_data_response);

        mTxtProName.setOnClickListener(this);
        mTxtScope.setOnClickListener(this);
        mTxtTime.setOnClickListener(this);
        mTxtPeople.setOnClickListener(this);
        mTxtPrice.setOnClickListener(this);
        mTxtCancel.setOnClickListener(this);
        mBtnFirm.setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()){
            case R.id.title_list_item_course_name:
                 ProNameActivity();
                break;
            case R.id.title_list_item_scope:
                 ScopeActivity();
                break;
            case R.id.title_list_item_time:

                break;
            case R.id.title_list_item_people:

                break;
            case R.id.title_list_item_liner_price:

                break;
            case R.id.title_list_item_liner_cancel:

                break;
            case R.id.layout_button_data_response:

                break;

        }
    }

    private void ProNameActivity() {
        startActivity(new Intent(this, ProNameActivity.class));
    }

    private void ScopeActivity() {
        startActivity(new Intent(this, ScopeActivity.class));
    }
}
